package com.jwthhealth_pub.old.report.view.widget;

/**
 * Created by liuzhen on 2017/9/29.
 */

import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class LikeDialog extends Dialog {

//    private static int default_width = 1400; //默认宽度
//    private static int default_height = 1080;//默认高度

//    public LikeDialog(Context context, ViewHolder layout, int style) {
//        this(context, default_width, default_height, layout, style);
//    }

    public LikeDialog(Context context, int width, int height, View layout, int style) {
        super(context, style);
//        if (width != 0)
//            default_width = width;
        setContentView(layout);
        Window window = getWindow();
        WindowManager.LayoutParams params = window.getAttributes();
        params.gravity = Gravity.CENTER;
        params.width = width;
        params.height = height;
        window.setAttributes(params);
    }

}